import service from "@/api/index.js";

const commentApi = {
//     发表评论
    addInfo: (comment) => {
        return service.post('/comment',comment)
    },
// 获取评论
    getList:(comment) => {
        return service.get('/comment',comment)
    }
}

export default commentApi;